import gp.Classification;
import basics.Dataset;
import basics.Vector;
import db.TextFileHandler;
import db.TextFileHandler.LabelPosition;
import probability.ProbabilitiesTest;
import utils.Printer;

public class Driver {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// ProbabilitiesTest.testMultivariateGaussian();

		// probability.ProbabilitiesTest.testConfGeomFunct();

		// probability.ProbabilitiesTest.testGPSampling();

		// matchbox.Handler.run();

		// / TwitterDataLoader.run(args[0], args[1]);
		// TwitterDataLoader.run("/media/d/Datasets/twitter/tweets2009-06.txt", "200906");

		Dataset<Vector, Integer> ds = TextFileHandler.read("./testData/diabetes_scale.txt", " ",
				LabelPosition.FirstCol, false, ":");

		Dataset<Vector, Integer> test = ds.extractRandomSubset(.4);
		gp.Classification gp = new gp.Classification();
		gp.train(ds);
		System.out.println(gp.measureAccuracy(test) + " / " + test.size());
	}
}
